package com.yunxi.service.localService.impl.otd;


import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.otd.MonthPlanMapper;
import com.yunxi.model.otd.MonthPlan;
import com.yunxi.service.localService.otd.MonthPlanDetailService;
import com.yunxi.service.localService.otd.MonthPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 月度需求计划 服务实现类
 * </p>
 *
 * @author XUQI
 * @since 2019-05-06
 */
@Service
public class MonthPlanServiceImpl extends ServiceImplPlus<MonthPlanMapper, MonthPlan> implements MonthPlanService {

    @Autowired
    @Qualifier("monthPlanDetailServiceImpl")
    MonthPlanDetailService monthPlanDetailService;

    @Override
    public Integer findMonthPlanVersionByYearMonth(String year, String month) {
        return baseMapper.selectMonthPlanVersionByYearMonth(year, month);
    }

    @Override
    public void modifyMonthPlanNum(String monthPlanCode, String realName) {
        baseMapper.updateMonthPlanNum(monthPlanCode, realName);
    }
}
